package command

import (
	"fmt"
	"github.com/gookit/color"
)

// Device 接收者接口
type Device interface {
	ON()
	OFF()
}

// 接受者

type Tv struct {
	isRunning bool
}

func (t *Tv) ON() {
	t.isRunning = true
	color.Redln("Turning tv ON")
}

func (t *Tv) OFF() {
	t.isRunning = false
	fmt.Println("Turning tv OFF")
}
